package com.duowei.kitchenshow.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.duowei.kitchenshow.R;
import com.duowei.kitchenshow.bean.Cfpb_item;

import java.util.List;

public class RvOutAdapter extends BaseQuickAdapter<Cfpb_item>{
    public RvOutAdapter(List<Cfpb_item> data) {
        super(R.layout.rightadapter_item, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, Cfpb_item cfpb_item) {
        baseViewHolder.setText(R.id.tv_time,cfpb_item.fzs+"分钟");
        baseViewHolder.setText(R.id.tv_zh,"餐桌:"+cfpb_item.czmc1);
//        baseViewHolder.setText(R.id.tv_pz,cfpb_item.pz);
        baseViewHolder.setText(R.id.tv_name,cfpb_item.xmmc1+"\n"+cfpb_item.pz);
        baseViewHolder.setText(R.id.tv_num,cfpb_item.sl1+"");
        baseViewHolder.setText(R.id.tv_dw,cfpb_item.dw);
    }
}
